package com.gdd.videos.mini_api;

import com.gdd.videos.common.util.RedisOperator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhangh     
 * @version V1.0.0
 * @projectName parent
 * @title     BasicController   
 * @package    com.gdd.videos.mini_api  
 * @date   2019/9/4 18:01  
 * @explain basicController
 */
@RestController
public class BasicController {

    @Autowired
    public RedisOperator redis;

    public static final String USER_REDIS_SESSION = "user-redis-session";

    // 用户上传文件的命名空间,配置在application.yml中
    @Value("${user.fileSpace}")
    public String fileSpace;

    @Value("${ffmpegExe}")
    public String ffmpegExe;

    @Value("${video.pageSize}")
    public Integer pageSize;
}
